package com.xm9m.web.service.api.response.common;

import com.xm9m.web.service.entity.BaseEntity;
import com.xm9m.web.service.interfaces.IXm9mResponse;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Liutong on 12/17/15.
 * 分页 response
 */
public class PaginationResponse<T extends BaseEntity> implements IXm9mResponse{
    /**
     * 总条数
     */
    private int totalCount;


    private List<T> data = new ArrayList<T>();

    public int getTotalCount() {
        return totalCount;
    }
    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
